from enum import Enum


class ErrCode(Enum):
    RETURN_OK = "成功返回"
    DATA_ERROR = "参数错误"
    MOBILE_ERROR = "手机号码格式不正确"
    MOBILE_HAVE = "手机号码已存在"
    SMS_CODE_ERROR = "验证码错误"
    SMS_CODE_EXPIRED = "验证码已过期"
    SMS_SEND = "验证码发送失败"
    CARD_REPEAT = "已实名认证"
    CARD_OK = "身份证验证通过"
    CARD_LEN = "身份证号码长度错误"
    CARD_ERROR = "身份证号码错误"
    CARD_VERIFY_ERROR = "实名认证访问失败"
    CARD_HAVE = "身份证已验证过"
    MOBILE_CHANGE_ERROR = "手机号码修改失败"
    MOBILE_EXIST = "手机号码以存在"
    NICKNAME_EXIST = "用户昵称已存在"
    USER_ERROR = "用户信息错误"
    REPO_ERROR = "茶仓数据错误"
    USER_NOT_FOUND = "用户找不到"
    USER_TEA_REPO_UN_PUBLIC = "用户茶仓权限未公开"

    YUE_NOT_ENOUGH = "余额不足"
    WITHDRAW_EMPTY = "0元不需要提现"
    WITHDRAW_ERROR = '提现失败'
    SIGN = "已签到"
    # x增加
    PASSWORD_ERROR = "密码错误"
